<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <button @click="handle">发一个请求</button>
    </div>
</body>
<script src="./node_modules/vue/dist/vue.js"></script>
<script src="./node_modules/axios/dist/axios.js"></script>
<script>

    let vm = new Vue({
        el: "#app",
        methods: {
            handle() {
                axios.get('http://localhost:3000/users').then(res => {
                    console.log(res);
                })
            }
        }
    })
</script>

</html>